﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LDCRNewEdit.Model
{
    class BaseData : ICloneable
    {
        public List<BaseDataValue> DataList
        {
            set;
            get;

        }

        public string Name
        {
            set;
            get;
        }

        public object Clone()
        {
            BaseData data = new BaseData();
            data.Name = this.Name;

            data.DataList = new List<BaseDataValue>();

            foreach (BaseDataValue v in this.DataList)
            {
                data.DataList.Add((BaseDataValue)v.Clone());
            }

            return data;
        }

    }
}
